]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: fix another occurrence of add_watch => add_idle_watch
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 15 Feb 2013 17:19:49 +0000 (12:19 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 15 Feb 2013 17:41:17 +0000 (12:41 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=693909

js/ui/unlockDialog.js

index b11f1eca3e82683e4198f47daf5332b1dce38127..f1efe5cad9f34483b3f6056e06153982c730e292 100644 (file)
@@ -229,7 +229,7 @@ const UnlockDialog = new Lang.Class({
         Main.ctrlAltTabManager.addGroup(this.dialogLayout, _("Unlock Window"), 'dialog-password-symbolic');
 
         this._idleMonitor = new GnomeDesktop.IdleMonitor();
-        this._idleWatchId = this._idleMonitor.add_watch(IDLE_TIMEOUT * 1000, Lang.bind(this, this._escape));
+        this._idleWatchId = this._idleMonitor.add_idle_watch(IDLE_TIMEOUT * 1000, Lang.bind(this, this._escape));
     },
 
     _updateSensitivity: function(sensitive) {